﻿#ifndef SMARTVIEWVIEW_H
#define SMARTVIEWVIEW_H

#include <ElaIconButton.h>
#include <ElaWidget.h>

#include <QLayout>
#include <QMap>
#include <QStackedLayout>

class SmartViewView : public ElaWidget
{
    Q_OBJECT

public:
    SmartViewView(QWidget *parent = nullptr);

    void addOptionView(QWidget *view);
    void setOptionIcon(int index, ElaIconType::IconName type);

private slots:
    void onOptionButtonClicked();

private:
    QHBoxLayout *mOptionLayout;
    QStackedLayout *mStackedLayout;
    QMap<ElaIconButton *, int> mButtonMap;
};

#endif
